Daniel Boles [Sat, 2 Sep 2017 15:13:03 +0000 (16:13 +0100)]
Revert "sk.po: Consistently translate “Insert”"
This reverts commit
98e301845529386387308b00ff368291fccd292e.
As an English-speaker, I know nothing about complex grammar, and it’s
been brought to my attention that some languages might differ in the
translation of the same command depending on where it appears.
So, I’d better assume everyone else knows better than me. Apologies!
Matthias Clasen [Sat, 2 Sep 2017 15:06:20 +0000 (11:06 -0400)]
gsk: add a has_color boolean to text nodes
Currently, this information is not used since cairo_show_glyphs
deals with color glyphs for us. But when we get to uploading
glyphs to a texture atlas, we will need it to do the right thing.
We don't look at individual glyphs here, but just whether the
font has the has-color flag set. In practice, all glyphs in
such a font will be color glyphs, and we can avoid loading all
the glyphs this way.
Daniel Boles [Sat, 2 Sep 2017 15:00:08 +0000 (16:00 +0100)]
Adwaita: Fix colour mixing of emoji section button
when hovered, by using %, since SASS does not handle decimal mixes.
Daniel Boles [Sat, 2 Sep 2017 10:56:51 +0000 (11:56 +0100)]
sk.po: Consistently translate “Insert”
The two occurrences disagreed on the translation, and my amateur
investigation indicates this one is correct.
Daniel Boles [Sat, 2 Sep 2017 10:53:16 +0000 (11:53 +0100)]
gl.po: Consistently translate/capitalise “Emoji”
GTK+ 3 and 4 disagreed on capitalisation and the translation of “Emoji”.
Use sentence case as elsewhere & the most common translation: emoticono.
Matthias Clasen [Sat, 2 Sep 2017 12:45:51 +0000 (08:45 -0400)]
emoji chooser: No emoji in the search entry
Recursion is fun, but better avoided in the ui.
https://bugzilla.gnome.org/show_bug.cgi?id=786960
Matthias Clasen [Sat, 2 Sep 2017 12:42:52 +0000 (08:42 -0400)]
entry: Consider input hints for Emoji support
Don't show "insert emoji" in the context menu if input
hints indicate that Emoji input is not useful.
Matthias Clasen [Sat, 2 Sep 2017 12:42:18 +0000 (08:42 -0400)]
Add input hints for Emoji input
Allow hinting input methods about whether Emoji support is
useful or not.
Emmanuele Bassi [Sat, 2 Sep 2017 11:00:05 +0000 (12:00 +0100)]
build: Add option to enable/disable GIR generation
And drop the unnecessary is_cross_build() check: it's entirely possible
to generate introspection data when cross-compiling.
Fran Dieguez [Sat, 2 Sep 2017 10:09:49 +0000 (10:09 +0000)]
Update Galician translation
Dušan Kazik [Sat, 2 Sep 2017 08:00:42 +0000 (08:00 +0000)]
Update Slovak translation
Dušan Kazik [Sat, 2 Sep 2017 07:55:10 +0000 (07:55 +0000)]
Update Slovak translation
Andika Triwidada [Sat, 2 Sep 2017 00:59:58 +0000 (00:59 +0000)]
Update Indonesian translation
Matthias Clasen [Fri, 1 Sep 2017 23:51:17 +0000 (19:51 -0400)]
emoji chooser: Avoid a crash
The emoji chooser gets disposed already, because it is attached
to the toplevel as a popover. Doing it again when the object data
is cleared is leading to a crash.
https://bugzilla.gnome.org/show_bug.cgi?id=787103
Piotr Drąg [Fri, 1 Sep 2017 23:53:37 +0000 (01:53 +0200)]
Update Polish translation
Mohammed Sadiq [Wed, 30 Aug 2017 17:55:59 +0000 (23:25 +0530)]
emoji-chooser: fix subsequent scroll
Event handlers on scroll window should only be run once the widget
is shown.
https://bugzilla.gnome.org/show_bug.cgi?id=786964
gogo [Fri, 1 Sep 2017 22:04:54 +0000 (22:04 +0000)]
Update Croatian translation
gogo [Fri, 1 Sep 2017 21:52:46 +0000 (21:52 +0000)]
Update Croatian translation
Daniel Boles [Wed, 30 Aug 2017 11:48:23 +0000 (12:48 +0100)]
Entry: Set tooltip text on icon for emoji chooser
https://bugzilla.gnome.org/show_bug.cgi?id=786885
Matthias Clasen [Fri, 1 Sep 2017 19:33:27 +0000 (15:33 -0400)]
Use gsk for text shadows
We don't need to render these manually using cairo anymore.
Matthias Clasen [Fri, 1 Sep 2017 19:32:48 +0000 (15:32 -0400)]
label: Don't leak clip regions
This was introduced in the conversion to gsk.
Daniel Boles [Fri, 1 Sep 2017 19:17:11 +0000 (20:17 +0100)]
ComboBox: Dodge possible surplus disconnects
in case anyone connected any other signal on the model to this ComboBox.
Matthias Clasen [Fri, 1 Sep 2017 18:42:29 +0000 (14:42 -0400)]
entry: Convert to gsk
This introduces a new css node for block cursor styling.
Matthias Clasen [Fri, 1 Sep 2017 18:12:20 +0000 (14:12 -0400)]
Fix text colors
This was lost in some reshuffling of the gskpango branch.
Matthias Clasen [Fri, 1 Sep 2017 17:42:43 +0000 (13:42 -0400)]
Fix the build
Matthias Clasen [Fri, 1 Sep 2017 16:42:21 +0000 (12:42 -0400)]
Use a text render node in GskPangoRenderer
This pushes the rendering closer to the place where we can
insert a texture atlas for glyph caching.
Matthias Clasen [Tue, 29 Aug 2017 21:28:10 +0000 (17:28 -0400)]
Add a render node for text
This is just a wrapper around a PangoGlyphString + PangoFont.
Basically, the arguments that are passed to pango_renderer_draw_glyphs.
Matthias Clasen [Wed, 30 Aug 2017 15:14:48 +0000 (11:14 -0400)]
Use GskPangoRenderer to render text
This just replaces the wrapper call.
Matthias Clasen [Wed, 30 Aug 2017 15:12:50 +0000 (11:12 -0400)]
Add a Pango renderer
Copy the PangoCairoRenderer into GTK+, rename it to GskPangoRenderer,
and strip it down far enough to build without private pango apis.
This means we currently don't support hexboxes or shapes.
Currently, this lives in gtk, but it might be nicer to put it
in gsk eventually.
Timm Bäder [Fri, 1 Sep 2017 12:09:44 +0000 (14:09 +0200)]
centerbox: Unparent widgets in dispose
Timm Bäder [Thu, 31 Aug 2017 11:14:33 +0000 (13:14 +0200)]
menuitem: Fix small memory leak in get_label
g_object_get returs a newly allocated string so we can't use it here.
Matthias Clasen [Fri, 1 Sep 2017 16:56:22 +0000 (12:56 -0400)]
Remove an unused variable
Matthias Clasen [Fri, 1 Sep 2017 16:26:43 +0000 (12:26 -0400)]
label: Port active link drawing to gsk
We don't need to fall back to cairo fro this anymore.
Piotr Drąg [Fri, 1 Sep 2017 16:22:44 +0000 (18:22 +0200)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Fri, 1 Sep 2017 16:03:06 +0000 (12:03 -0400)]
inspector: Add some tooltips
These buttons are not 100% obvious.
Matthias Clasen [Fri, 1 Sep 2017 15:59:41 +0000 (11:59 -0400)]
inspector: Remove debug nodes setting from visual tab
No need to have the same setting in two places.
Matthias Clasen [Fri, 1 Sep 2017 15:55:23 +0000 (11:55 -0400)]
inspector: Move debug nodes option
Put this option on the recorder page where it makes more sense.
Matthias Clasen [Fri, 1 Sep 2017 15:07:21 +0000 (11:07 -0400)]
label: Port selection drawing to gsk
We don't need to fall back to cairo for this anymore.
Daniel Boles [Fri, 1 Sep 2017 15:03:36 +0000 (16:03 +0100)]
ScrolledWindow: Dodge possible surplus disconnects
In case the outgoing Adjustment for whatever reason has other handlers
referring to this SW, be sure to avoid disconnecting any but our own.
Daniel Boles [Fri, 1 Sep 2017 10:52:12 +0000 (11:52 +0100)]
ComboBox: Remove pointless signal ID member fields
We don’t need to store these for disconnection, as we can just use
g_signal_handlers_disconnect_by_data().
Dušan Kazik [Fri, 1 Sep 2017 14:21:15 +0000 (14:21 +0000)]
Update Slovak translation
Daniel Boles [Thu, 31 Aug 2017 22:18:46 +0000 (23:18 +0100)]
ScrolledWindow: Fix non-disconnection of handlers
• Use disconnect_by_data() to catch both _adjustment_changed() and now
_adjustment_value_changed(), as the latter had been missed until now.
• Also disconnect from indicator_value_changed(), which was not done in
destroy() due to indicator_reset() and remove_indicator() disagreeing.
https://bugzilla.gnome.org/show_bug.cgi?id=775074
Daniel Boles [Thu, 31 Aug 2017 19:19:58 +0000 (20:19 +0100)]
Window: Do not connect to NULL screen in init()
Do not connect to get_settings_for_screen() if we have no screen…
Use g_signal_connect(), not connect_object(), to match how set_screen()
makes this same connection, and how finalize() already disconnects it.
https://bugzilla.gnome.org/show_bug.cgi?id=705640
Daniel Boles [Thu, 31 Aug 2017 18:58:15 +0000 (19:58 +0100)]
FileChooserWidget: Remove an unused #include
Daniel Boles [Tue, 29 Aug 2017 22:10:14 +0000 (23:10 +0100)]
gskenums: Fix typo/grammar in GskRenderNodeType doc
Matthias Clasen [Thu, 31 Aug 2017 03:22:03 +0000 (23:22 -0400)]
Avoid computing the same thing twice
Trivial cleanup.
Daniel Boles [Wed, 30 Aug 2017 20:14:56 +0000 (21:14 +0100)]
Entry: Rename int helper to gtk_entry_clear_icon()
It was called gtk_entry_clear(), which was unnecessarily vague.
Gábor Kelemen [Wed, 30 Aug 2017 18:18:25 +0000 (18:18 +0000)]
Update Hungarian translation
Gábor Kelemen [Wed, 30 Aug 2017 18:18:10 +0000 (18:18 +0000)]
Update Hungarian translation
Daniel Boles [Sat, 5 Aug 2017 22:48:29 +0000 (23:48 +0100)]
Entry: Fix Shift-click → extend/truncate selection
Since the move from button-press to gesture events, Shift-clicking did
not work to start a selection (from none) or truncate an existing one.
This was due to the code being copy-pasted around and some logic being
broken in the process. This makes both of those work as they should, by
shuffling it again so the end result is the same as before. Highlights:
(1) ::button-press if extending due to a single press would call
set_positions(tmp_pos, tmp_pos), which is what made the Shift+click to
create a selection work. That was lost. Add it back to make that work.
(2) ::button-press in the “Truncate current selection” branch would not
execute all the stuff around “extend_to_left”, as that was the else
case. So, set extend_selection = FALSE so we skip over that later on.
(3) BUT! This Truncate case never fired because it was in the else
branch of if (in_selection())! Of course, it must be in the true branch.
(4) The IM context was not reset if the Shift-click occurred within an
existing selection, only if it did not. In ::button-press this was the
first thing done if extending a selection, regardless. Make it so again.
https://bugzilla.gnome.org/show_bug.cgi?id=780750
Daniel Boles [Wed, 30 Aug 2017 13:22:54 +0000 (14:22 +0100)]
gl.po: Remove mnemonic underlines from tooltips
It looks like these were copy-paste errors from the corresponding labels
for buttons, which should have mnemonics. Of course, tooltips cannot.
Matthias Clasen [Wed, 30 Aug 2017 12:36:56 +0000 (08:36 -0400)]
Avoid empty space in the emoji chooser
We need to hide the empty flow boxes as well, to avoid
spacing between them.
https://bugzilla.gnome.org/show_bug.cgi?id=786966
Fabio Tomat [Wed, 30 Aug 2017 08:31:59 +0000 (08:31 +0000)]
Update Friulian translation
Nelson Benítez León [Wed, 2 Aug 2017 14:03:28 +0000 (19:03 +0500)]
textview: fix bug on DnD displaced limits of selection
The fix of commit
f2fd655754407103f8fb9b2c3e7586fb595ab917
should be confined to DnD coords only, because otherwise
it causes the start and end of the selection to be displaced.
https://bugzilla.gnome.org/show_bug.cgi?id=785736
Debarshi Ray [Mon, 28 Aug 2017 16:58:50 +0000 (18:58 +0200)]
GtkBuilder: Prefer "type-func" over "class" when looking for the GType
https://bugzilla.gnome.org/show_bug.cgi?id=786932
Милош Поповић [Tue, 29 Aug 2017 11:36:58 +0000 (11:36 +0000)]
Update Serbian Latin translation
Марко Костић [Tue, 29 Aug 2017 11:33:09 +0000 (11:33 +0000)]
Update Serbian translation
Timm Bäder [Tue, 29 Aug 2017 09:48:13 +0000 (11:48 +0200)]
GskRenderNode: Fix fallback border drawing
Rūdolfs Mazurs [Tue, 29 Aug 2017 09:19:09 +0000 (12:19 +0300)]
Update Latvian translation
Emin Tufan Çetin [Tue, 29 Aug 2017 05:39:03 +0000 (05:39 +0000)]
Update Turkish translation
Daniel Boles [Sat, 12 Aug 2017 15:13:11 +0000 (16:13 +0100)]
LevelBar: Really fix underallocation of blocks
Themes should not enforce min sizes on blocks in continuous mode; in
this case, the filled block should be as large as it needs to be to
reflect the current value, and no larger or smaller than that. So, the
fact that the minimal size was selected on just levelbar block is wrong:
we should also require the levelbar.discrete class to apply min sizes.
The widget should enforce whatever correct minimum size results from the
above fix, by reapplying commit
78b4885fe8850e132d8bb06df8ab90ac6c2033e0
Except: we should not allocate/draw the filled block if the value is 0,
as in this case, the LevelBar should be empty, not have a min-size fill.
This partially reverts commit
96062ffeae5245fa165a96a2af86d5645f5e8569,
as it makes sense to set min sizes for discrete blocks, so keep that in.
https://bugzilla.gnome.org/show_bug.cgi?id=783649
Javier Jardón [Fri, 4 Aug 2017 14:12:12 +0000 (15:12 +0100)]
gtk/gtkshow: Remove deprected gtk_show_uri()
Javier Jardón [Fri, 4 Aug 2017 14:11:36 +0000 (15:11 +0100)]
Use gtk_show_uri_on_window() instead gtk_show_uri()
Daniel Boles [Mon, 28 Aug 2017 19:35:47 +0000 (20:35 +0100)]
Entry: Handle :show-emoji-icon becoming false
Disconnect the now-unwanted signal handler, and hide the icon.
https://bugzilla.gnome.org/show_bug.cgi?id=786940
Daniel Boles [Mon, 28 Aug 2017 19:34:49 +0000 (20:34 +0100)]
Entry: Drop redundant typecasts
https://bugzilla.gnome.org/show_bug.cgi?id=786940
Daniel Boles [Mon, 28 Aug 2017 19:26:48 +0000 (20:26 +0100)]
Entry: Only open emoji picker on 2ndary icon click
We hijack the secondary icon for the emoji picker, but the handler for
::icon-press did not check the pressed icon and opened it for either.
https://bugzilla.gnome.org/show_bug.cgi?id=786938
Ask Hjorth Larsen [Mon, 28 Aug 2017 17:27:30 +0000 (19:27 +0200)]
Updated Danish translation
Ask Hjorth Larsen [Mon, 28 Aug 2017 17:25:52 +0000 (19:25 +0200)]
Updated Danish translation
Matej Urbančič [Mon, 28 Aug 2017 17:24:58 +0000 (19:24 +0200)]
Updated Slovenian translation
Matej Urbančič [Mon, 28 Aug 2017 17:19:53 +0000 (19:19 +0200)]
Updated Slovenian translation
Timm Bäder [Mon, 28 Aug 2017 15:48:25 +0000 (17:48 +0200)]
gskrendernode: Fix inset shadow drawing
Timm Bäder [Mon, 28 Aug 2017 15:38:57 +0000 (17:38 +0200)]
gskrendernode: Constify some parameters
Timm Bäder [Mon, 28 Aug 2017 14:58:48 +0000 (16:58 +0200)]
Revert "headerbar: Avoid allocating 0 visible children"
This reverts commit
8c0e5adaab3f38de31d44dd50bcc8179b17c8b4a.
This is actually needed since GtkHeaderBar will allocate and snapshot
widget that coun_visible_children does not consider.
Fabio Tomat [Mon, 28 Aug 2017 14:40:24 +0000 (14:40 +0000)]
Update Friulian translation
Timm Bäder [Mon, 28 Aug 2017 09:17:19 +0000 (11:17 +0200)]
range: Fix trough state update
Timm Bäder [Mon, 28 Aug 2017 09:15:58 +0000 (11:15 +0200)]
popover: Initialize some locals
gtk_popover_get_pointing_to does not fill the given rect in every case.
Timm Bäder [Mon, 28 Aug 2017 09:07:35 +0000 (11:07 +0200)]
headerbar: Avoid allocating 0 visible children
Ths avoids doing a bunch of work as well as passing 0 to g_alloca which
is undefined.
Changwoo Ryu [Sun, 27 Aug 2017 21:47:55 +0000 (21:47 +0000)]
Update Korean translation
Changwoo Ryu [Sun, 27 Aug 2017 21:47:41 +0000 (21:47 +0000)]
Update Korean translation
Çağatay Yiğit Şahin [Sun, 27 Aug 2017 20:59:40 +0000 (20:59 +0000)]
Update Turkish translation
Matthias Clasen [Sun, 27 Aug 2017 20:01:24 +0000 (16:01 -0400)]
meson: Make sure ENABLE_NLS is actually defined
Despite the comment, we ended up without ENABLE_NLS.
Matthias Clasen [Sun, 27 Aug 2017 02:13:25 +0000 (22:13 -0400)]
x11: Fix managed dnd
We need to actually trigger the drop from the gdk side.
Matthias Clasen [Sat, 26 Aug 2017 23:15:36 +0000 (19:15 -0400)]
Remove an unused field
Drag contexts are objects, so there is no need to carry a
manual refcount around.
Matthias Clasen [Sat, 26 Aug 2017 22:01:17 +0000 (18:01 -0400)]
x11: Fix initial drag cursors
Under X, we were not setting the right drag cursor initially,
because at current_action == action == 0, initially. Fix this
by explicitly using the right cursor when grabbing.
Matthias Clasen [Sat, 26 Aug 2017 19:34:46 +0000 (15:34 -0400)]
wayland: Stop using subsurfaces for popovers
Subsurfaces don't currently work with our new rendering,
and this makes popovers unusable. We can go back to using
subsurfaces for popovers when this is fixed.
Timm Bäder [Fri, 25 Aug 2017 12:52:14 +0000 (14:52 +0200)]
container: Remove leftover prototype
Thanks to Murray Cumming.
Fabio Tomat [Fri, 25 Aug 2017 11:44:35 +0000 (11:44 +0000)]
Update Friulian translation
Jordi Mas [Fri, 25 Aug 2017 11:37:17 +0000 (13:37 +0200)]
Fix Catalan translation
Fabio Tomat [Fri, 25 Aug 2017 03:17:56 +0000 (03:17 +0000)]
Update Friulian translation
Daniel Boles [Thu, 24 Aug 2017 11:46:47 +0000 (12:46 +0100)]
ComboBox: Clarify documentation of get_active_iter
https://bugzilla.gnome.org/show_bug.cgi?id=618160
Daniel Boles [Wed, 23 Aug 2017 20:44:10 +0000 (21:44 +0100)]
Popover: Include window shadows in overshoot calcs
.update_position() enforces that non-Wayland platforms must position a
Popover within its parent Window. We use the allocation of the Window
to translate the position and check for overshoot on each of its sides.
Calling Widget.get_allocation() of a CSD Window includes its shadows.
But shadows were not excluded from the area in which we can position.
Thus, Popovers could get positioned in the shadow of CSD windows, where,
at least on X11, no input is received. Therefore, positioning a Popover
over a shadow meant its child widgets within that area became unusable.
Fix by calling Window.get_shadow() and including it in the overshoot on
each side. This adjusts for how the allocation includes shadows, making
overshoots with and without shadows the same. Thus, we avoid considering
shadows as viable for positioning, favouring a side where input works.
https://bugzilla.gnome.org/show_bug.cgi?id=786209
Daniel Boles [Sun, 13 Aug 2017 19:15:36 +0000 (20:15 +0100)]
testpopover: Use HeaderBar to get CSD decorations
This helps test whether the Popover positioning gets messed up by the
presence of CSD shadow or other accessories around the content area.
https://bugzilla.gnome.org/show_bug.cgi?id=786209
Cheng-Chia Tseng [Thu, 24 Aug 2017 16:40:29 +0000 (16:40 +0000)]
Update Chinese (Taiwan) translation
Piotr Drąg [Thu, 24 Aug 2017 00:45:09 +0000 (02:45 +0200)]
Update POTFILES.in and POTFILES.skip
Matthias Clasen [Wed, 23 Aug 2017 20:54:53 +0000 (16:54 -0400)]
Remove motif dnd leftovers
We don't support Motif DND anymore, so no need to look for
Motif-specific messages.
Daniel Boles [Sat, 19 Aug 2017 16:27:20 +0000 (17:27 +0100)]
SidebarRow: Add Unmount tooltip to eject_button
It was reported that the lack of a tooltip made its purpose unclear.
This can be solved by just copying PlacesViewRow’s eject_button tooltip.
https://bugzilla.gnome.org/show_bug.cgi?id=766909
Carlos Garnacho [Wed, 23 Aug 2017 11:54:46 +0000 (13:54 +0200)]
fontchooser: Block row deleted signal handler when reloading model
This prevents the load_fonts() function from switching to the "no fonts"
page and back when the model is reloaded. Given
GtkSettings::gtk-fontconfig-timestamp is 0 on Wayland and style changes
happen often, the stack change messes up popovers and pointer focus
on the fonts treeview and test entry.
Tom Schoonjans [Mon, 31 Jul 2017 20:28:42 +0000 (21:28 +0100)]
GtkFileChooserNativeQuartz: restore parent focus after closing dialog
Tested for both modal and non-modal dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=785306
Tom Schoonjans [Mon, 31 Jul 2017 20:26:47 +0000 (21:26 +0100)]
GtkFileChooserNativeQuartz: improve support for file filters
Instead of using conditional compilation, use respondsToSelector to
check at runtime for setAccessoryViewDisclosed.
https://bugzilla.gnome.org/show_bug.cgi?id=785306
Tom Schoonjans [Sun, 23 Jul 2017 08:37:26 +0000 (09:37 +0100)]
GtkFileChooserNativeQuartz: add support for Mountain Lion and Mavericks
https://bugzilla.gnome.org/show_bug.cgi?id=784723 introduced support for
native file chooser dialogs on macOS, but due to the use of generics in
the patch, there will be compilation errors on pre-Xcode 7 platforms,
such as Mountain Lion and Mavericks.
I strongly recommend to revert this patch when the oldest supported
macOS release is bumped to Yosemite (10.10).
https://bugzilla.gnome.org/show_bug.cgi?id=785306